package files;

public class Replace {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String s = "$axxx, ";
		s = s.replaceAll("(\\$a[^$]*), ", "$1\\$d");
		System.out.println(s); // Output: Low Medium High
	}

}
